﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormCheckAdd.aspx.cs" Inherits="BySoft.Web.Site.SysManage.FormCheckAdd" MasterPageFile="~/MastePage/SubEmptyMaster.Master" %>

<%@ MasterType VirtualPath="~/MastePage/SubEmptyMaster.Master" %>
<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Src="../UserControl/SuggestTextBox2.ascx" TagName="SuggestTextBox2"
    TagPrefix="uc1" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphHeadContent" runat="server" ContentPlaceHolderID="HeadPlace">
    <script language="javascript" type="text/javascript">
        $(function () {
            $("#tabs").tabs({ show: function (event, ui) { iframeAutoFit(); } });
        });

        function Refreashtab() {
            $("#tabs").tabs({ show: function (event, ui) { iframeAutoFit(); } });
        }

      
    </script>
</asp:Content>
<asp:Content ID="cphContent" runat="server" ContentPlaceHolderID="EmptyMasteCPH">
    <h1 class="tit">系统管理 >> <a href="FormCheckList.aspx">让步审核管理</a> >> 新增</h1>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="tableStyle2">
                <table cellpadding="0" cellspacing="0" id="tBase" runat="server">
                    <tr>
                        <th class="left2">审核单据：
                        </th>
                        <td class="right2">
                            <asp:DropDownList CssClass="fullHeight" ID="ddlModuleID" runat="server">
                                <asp:ListItem Text="采购收料让步审核" Value="SYS0102"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <th class="left2">是否审核：
                        </th>
                        <td class="right2">
                            <asp:CheckBox ID="chkIsCheck" runat="server" Checked="true"></asp:CheckBox>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="tableStyle">
                <div id="tabs">
                    <ul>
                        <li><a href="#tabs-1">明细</a></li>
                    </ul>
                    <div id="tabs-1" class="tableStyle">
                        <div style="text-align: right; width: 100%; padding-bottom: 10px">
                            <label class="btnStylec png_bg">
                                <asp:Button ID="btnAdd" runat="server" Text="新增" OnClick="btnAdd_Click" />
                            </label> 
                        </div>
                        <div class="divscroll">
                            <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
                                OnRowDataBound="grdResult_RowDataBound" OnRowCommand="grdResult_RowCommand" AutoGenerateColumns="false"
                                AllowCascade="false">
                                <Columns>
                                    <asp:TemplateField HeaderStyle-CssClass="Hidden" ItemStyle-CssClass="Hidden" FooterStyle-CssClass="Hidden">
                                        <HeaderTemplate>
                                            FormCheckDetailID 
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblFormCheckDetailID" runat="server" Text='<%#Eval("FormCheckDetailID") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField> 
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            级数 
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblLevel" runat="server" Text=' <%# Container.DisplayIndex+1 %>'></asp:Label> 
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            审核人 
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:DropDownList Width="150px" ID="ddlCheckUser" runat="server" Text='<%#Eval("CheckUser") %>' DataSource='<%# BindCheckUser() %>' DataTextField="UserName" DataValueField="UserID"></asp:DropDownList>
                                        </ItemTemplate>
                                    </asp:TemplateField> 
                                    <asp:TemplateField>
                                        <HeaderStyle Width="35px" />
                                        <ItemStyle Width="35px" />
                                        <HeaderTemplate>
                                            删除
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:ImageButton ImageUrl="~/App_Themes/Common_CSS/images/delete_small.gif" runat="server"
                                                ID="ibtnDel" /><asp:Button ID="btnDel" runat="server" CssClass="Hidden" CommandArgument='<%# Container.DisplayIndex %>'
                                                    CommandName="del" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:SGridView>
                        </div>
                    </div>
                </div>
            </div>
            <div class="controlBar" align="center">
                <table cellpadding="0" cellspacing="0" style="width: 300px; margin: 0 auto;">
                    <tr>
                        <td colspan="4">
                            <label class="btnStyleb png_bg">
                                <asp:Button ID="btnSubmit" runat="server" Text="确定"
                                    OnClick="btnSubmit_Click" ValidationGroup="gSubmit" />
                            </label>
                            <label class="btnStylec png_bg">
                                <input type="button" id="Button2" value="返回" runat="server" onclick="window.location = 'FormCheckList.aspx'" />
                            </label>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>


